{# Overseer > Database > Tables (overseer_database_browser.tables), the whole width the table's own, filling the page below its header: the table picked, opening to the schema's tables to pick another (``dropdown``; its box narrows them as you type, ``filter_input``), the part owning it (``owner_link``: a service opens on the map, a component its page), its tabs: Rows (``_rows.html``), Schema (its CREATE statement) and Relationships (as Overseer's map draws, ``_overview_map.html``: who points at it, it, what it points at), then the way to query it (a new tab on Query). A table or a tab swaps it all. #} {% from "components/macros/layout.html" import badge, code_block, dropdown, menu_heading, tab_bar, tab_item %} {% from "components/macros/feedback.html" import empty_state %} {% from "components/macros/form.html" import filter_input %}
{% call tab_bar(table_name) %}
{% call dropdown(table_name, align="left") %}
  • {{ filter_input("#database-tables-list", placeholder="Find a table") }}
  • {{ menu_heading(tables_schema ~ " ยท " ~ tables_list|length, tag="p", attrs="data-schema") }} {% for table in tables_list %}{% set current = table.name == table_name %} {{ table.name }}{% if table.trend %}{{ table.trend }}{% endif %}{% if table.rows is not none %}{{ table.rows }}{% endif %} {% endfor %}
  • {% endcall %}
    {% if table_owner %}{% set owned_by = badge(table_owner.name, "accent") %} {% if table_owner.url %}{{ owned_by }}{% else %}{{ owned_by }}{% endif %} {% endif %} {% for tab in table_tabs %}{{ tab_item(tab.label, tab.key == table_tab, tab.url, hx_replace(tab.url, "#database-table")) }}{% endfor %} Query this table {% endcall %} {% if table_tab == "schema" %}
    {% if table_sql %}{{ code_block(table_sql, lang="sql") }}{% else %}{{ empty_state("No schema read", "The health check has not listed this table's columns.") }}{% endif %}
    {% elif table_unread %}

    Not one of the app's models, which its rows and keys are read through.

    {% elif table_tab == "relationships" %}
    {% if table_alone %}

    No key points out of it or into it.

    {% endif %} {% include "pages/overseer/_overview_map.html" %}
    {% else %} {% include "pages/overseer/database/_rows.html" %} {% endif %}